How to sort an array of objects based on object priority value

visit shbcf.ru